import Vue from 'vue'
import {
  Button, Form, FormItem, Input, Message, Checkbox, Card, PageHeader,
  Steps, Step, Loading, Row, Col, Carousel, CarouselItem, CheckboxButton,
  Container, Aside, Main, Header, Footer, Menu, Submenu, MenuItem, MenuItemGroup,
  Badge, Dropdown, DropdownMenu, DropdownItem, Breadcrumb, BreadcrumbItem,
  Table, TableColumn, Switch, Tooltip, Pagination, Tag, Avatar, Divider,
  Progress, Link, Timeline, TimelineItem, Calendar, RadioGroup, Radio, CheckboxGroup,
  DatePicker, TimePicker, Upload, Dialog, Notification, Select, Option, MessageBox,
  InfiniteScroll, Transfer, Backtop, Rate, RadioButton, Popconfirm, Popover, ColorPicker,
  Slider
} from 'element-ui'

Vue.use(Button)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Checkbox)
Vue.use(CheckboxButton)
Vue.use(CheckboxGroup)
Vue.use(Card)
Vue.use(PageHeader)
Vue.use(Steps)
Vue.use(Step)
Vue.use(Loading)
Vue.use(Row)
Vue.use(Col)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Header)
Vue.use(Footer)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Badge)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Tooltip)
Vue.use(Pagination)
Vue.use(Tag)
Vue.use(Avatar)
Vue.use(Divider)
Vue.use(Progress)
Vue.use(Link)
Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Calendar)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(DatePicker)
Vue.use(TimePicker)
Vue.use(Upload)
Vue.use(Dialog)
Vue.use(Select)
Vue.use(Option)
Vue.use(InfiniteScroll)
Vue.use(Transfer)
Vue.use(Backtop)
Vue.use(Rate)
Vue.use(RadioButton)
Vue.use(Popconfirm)
Vue.use(Popover)
Vue.use(ColorPicker)
Vue.use(Slider)
// 将 Messag 挂载到 Vue 的原型主键，这样每个组件都能使用 this 使用它
Vue.prototype.$message = Message

Vue.prototype.$notify = Notification

Vue.prototype.$confirm = MessageBox.confirm
